package com.market.quote.interfaces.rest.query.converter;

import com.market.quote.interfaces.rest.query.QueryRequest;
import com.market.quote.interfaces.rest.query.StockInfoRequest;
import com.market.quote.modules.stock.domain.dto.StockInfoDTO;
import com.market.quote.modules.stock.domain.dto.StockRequestDTO;
import org.mapstruct.Mapper;


/**
 * @author duweibin
 * @date 2024/4/22
 * @description QueryRequest与DTO转换器
 */
@Mapper(componentModel = "spring")
public interface QueryConverter {

    /**
     * query request to stock request
     * @param queryRequest  query request
     * @return stock request dto
     */
   StockRequestDTO toStockRequestDTO(QueryRequest queryRequest);

    /**
     * stock info request to stock info dto
     * @param stockInfoRequest
     * @return  stock info dto
     */
   StockInfoDTO toStockInfoDTO(StockInfoRequest stockInfoRequest);


}
